package com.service.merchant;

import com.bean.Merchant;
import com.github.pagehelper.Page;
import com.service.core.BaseService;

import java.util.HashMap;

/**
 * Created by lvjianqing on 2017/9/10.
 */
public interface MerchantService extends BaseService<Merchant,Integer>{
    /**
     * 分页查找合作商
     *
     * @param pageNum
     * @param pageSize
     * @param paraMap  查询条件
     * @return
     */
    Page findByPage(int pageNum, int pageSize, HashMap<String, Object> paraMap);

    Merchant findMerchantById(Integer id);

    /**
     * 更新或者插入合作商
     *
     * @param merchant
     */
    void saveMerchant(Merchant merchant);
}
